home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
DATACH.CST
/
00219_Script_bar comp popup
< prev
next >
Wrap
Text File
|
1999-03-07
|
1KB
|
58 lines
property thePopLocn, popSpriten, popNamen, mySpriten, faraway, fieldObjn
global currentChartName, popbgSpriten
on new me
set mySpriten = the spriteNum of me
set popSpriten = mySpriten + 1
set popbgSpriten = mySpriten - 3
set right = the right of sprite (mySpriten - 2)
set top = the top of sprite (mySpriten -2)
set thePopLocn = point(right, top)
set popNamen = "mdl_field"
puppetSprite popSpriten, true
set faraway = point(-1000, -1000)
set the loc of sprite popSpriten = faraway
return me
end
on register me, theObj
set fieldObjn = theObj
end
on mouseDown me
set the member of sprite popSpriten = member popNamen
set the loc of sprite popSpriten = thePopLocn
set the member of sprite popbgSpriten = member popNamen
set the loc of sprite popbgSpriten = thePopLocn
-- put "popped - " & thepoploc
updateStage
repeat while the stillDown
checkIfInside fieldObjn
end repeat
set the loc of sprite popSpriten = faraway
set the loc of sprite popbgSpriten = faraway
set name = getPlaneName(fieldObjn)
if name = "" then
nothing
else
disSpecs name
end if
set the loc of sprite popSpriten = faraway
set the loc of sprite popbgSpriten = faraway
updateStage
end
on mouseUp me
nothing
end